/*     */ package net.sourceforge.appgen.model;
/*     */ 
/*     */ import java.io.File;
/*     */ import java.io.Serializable;
/*     */ 
/*     */ public class GenerationInformation extends ValueModifyModel
/*     */   implements Serializable
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   private boolean specifyTemplateDir;
/*     */   private File templateDir;
/*     */   private File outputDir;
/*     */   private String packageName;
/*     */   private String superClassName;
/*     */ 
/*     */   public String toString()
/*     */   {
/*  45 */     StringBuilder builder = new StringBuilder(super.toString() + "(");
/*  46 */     builder.append("specifyTemplateDir='" + this.specifyTemplateDir + "'");
/*  47 */     builder.append(",");
/*  48 */     builder.append("templateDir='" + this.templateDir + "'");
/*  49 */     builder.append(",");
/*  50 */     builder.append("outputDir='" + this.outputDir + "'");
/*  51 */     builder.append(",");
/*  52 */     builder.append("packageName='" + this.packageName + "'");
/*  53 */     builder.append(",");
/*  54 */     builder.append("superClassName='" + this.superClassName + "'");
/*  55 */     builder.append(")");
/*     */ 
/*  57 */     return builder.toString();
/*     */   }
/*     */ 
/*     */   public int hashCode()
/*     */   {
/*  63 */     int result = 1;
/*  64 */     result = 31 * result + (this.outputDir == null ? 0 : this.outputDir.hashCode());
/*  65 */     result = 31 * result + (this.packageName == null ? 0 : this.packageName.hashCode());
/*  66 */     result = 31 * result + (this.specifyTemplateDir ? 1231 : 1237);
/*  67 */     result = 31 * result + (this.superClassName == null ? 0 : this.superClassName.hashCode());
/*  68 */     result = 31 * result + (this.templateDir == null ? 0 : this.templateDir.hashCode());
/*  69 */     return result;
/*     */   }
/*     */ 
/*     */   public boolean equals(Object obj)
/*     */   {
/*  74 */     if (this == obj)
/*  75 */       return true;
/*  76 */     if (obj == null)
/*  77 */       return false;
/*  78 */     if (getClass() != obj.getClass())
/*  79 */       return false;
/*  80 */     GenerationInformation other = (GenerationInformation)obj;
/*  81 */     if (this.outputDir == null) {
/*  82 */       if (other.outputDir != null)
/*  83 */         return false;
/*  84 */     } else if (!this.outputDir.equals(other.outputDir))
/*  85 */       return false;
/*  86 */     if (this.packageName == null) {
/*  87 */       if (other.packageName != null)
/*  88 */         return false;
/*  89 */     } else if (!this.packageName.equals(other.packageName))
/*  90 */       return false;
/*  91 */     if (this.specifyTemplateDir != other.specifyTemplateDir)
/*  92 */       return false;
/*  93 */     if (this.superClassName == null) {
/*  94 */       if (other.superClassName != null)
/*  95 */         return false;
/*  96 */     } else if (!this.superClassName.equals(other.superClassName))
/*  97 */       return false;
/*  98 */     if (this.templateDir == null) {
/*  99 */       if (other.templateDir != null)
/* 100 */         return false;
/* 101 */     } else if (!this.templateDir.equals(other.templateDir))
/* 102 */       return false;
/* 103 */     return true;
/*     */   }
/*     */ 
/*     */   public boolean isSpecifyTemplateDir() {
/* 107 */     return this.specifyTemplateDir;
/*     */   }
/*     */ 
/*     */   public void setSpecifyTemplateDir(boolean specifyTemplateDir) {
/* 111 */     this.specifyTemplateDir = specifyTemplateDir;
/*     */ 
/* 113 */     valueModified();
/*     */   }
/*     */ 
/*     */   public File getTemplateDir() {
/* 117 */     if (!this.specifyTemplateDir) {
/* 118 */       return null;
/*     */     }
/*     */ 
/* 121 */     return this.templateDir;
/*     */   }
/*     */ 
/*     */   public void setTemplateDir(File templateDir) {
/* 125 */     this.templateDir = templateDir;
/*     */ 
/* 127 */     valueModified();
/*     */   }
/*     */ 
/*     */   public File getOutputDir() {
/* 131 */     return this.outputDir;
/*     */   }
/*     */ 
/*     */   public void setOutputDir(File outputDir) {
/* 135 */     this.outputDir = outputDir;
/*     */ 
/* 137 */     valueModified();
/*     */   }
/*     */ 
/*     */   public String getPackageName() {
/* 141 */     return this.packageName;
/*     */   }
/*     */ 
/*     */   public void setPackageName(String packageName) {
/* 145 */     this.packageName = packageName;
/*     */ 
/* 147 */     valueModified();
/*     */   }
/*     */ 
/*     */   public String getSuperClassName() {
/* 151 */     return this.superClassName;
/*     */   }
/*     */ 
/*     */   public void setSuperClassName(String superClassName) {
/* 155 */     this.superClassName = superClassName;
/*     */ 
/* 157 */     valueModified();
/*     */   }
/*     */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.model.GenerationInformation
 * JD-Core Version:    0.6.0
 */